<?php

namespace LowCode\Traits\Props;

use LowCode\Support\JsExp;

/**
 * 设置标题
 */
trait HasTitle
{
    /**
     * 设置标题
     * @param string|JsExp $title
     * @return $this
     */
    public function title(string|JsExp $title): static
    {
        return $this->prop("title",$title);
    }
}
